package com.aisi.entity.vo.request;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @Author: shenjianZ
 * @Date: 2024/2/15 20:59
 * @Description:
 */

@Data
public class EmailRegisterVO {
    @Email
    String email;

    @Length(max = 6,min = 6)
    String code;

    @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]+$")
    @Length(min = 1,max = 10)
    String username;

    @Length(max=20,min = 6)
    String password;
}
